package mason.dp.simplefactory;

/**
 * 创建包子的简单工厂
 * 
 * @author MasonAir
 *
 */
public class BaoZiSimpleFactory {
	public BaoZi createBaoZi(String type) {
		BaoZi bao = null;
		if (type.equals("DouSha")) {
			bao = new DouShaBao();
		} else if (type.equals("NiuRou")) {
			bao = new NiuRouBao();
		}
		return bao;
	}
}
